<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:63:"F:\yxl\tp5.com\public/../application/index\view\jquery\nav.html";i:1559700377;}*/ ?>
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>无限级分类</title>
    <style>
        dd a{
            color: #FF00FF;
        }
        li a{
            color: #EAA90B;
        }
    </style>
</head>
<body>
<dd><a href="/index/jquery/jlist">返回首页</a></dd>
<ul class="layui-nav layui-bg-blue">
    <!--<li class="layui-nav-item"><img src="/static/images/face/timg.gif" alt="" width="95" height="60"></li>-->
    <?php if(is_array($data) || $data instanceof \think\Collection || $data instanceof \think\Paginator): if( count($data)==0 ) : echo "" ;else: foreach($data as $key=>$v): ?>
    <li class="layui-nav-item"><a href="javascript:;"><?php echo $v['region_name']; ?></a>
        <?php if($v['childs'] != null): ?>
        <dl class="layui-nav-child">
            <?php if(is_array($v['childs']) || $v['childs'] instanceof \think\Collection || $v['childs'] instanceof \think\Paginator): if( count($v['childs'])==0 ) : echo "" ;else: foreach($v['childs'] as $key=>$vo): ?>
            <dd>
                <a href="javascript:;"><?php echo $vo['region_name']; ?></a>
                <?php if(!empty($vo['childs'])): ?>
                <ul>
                    <?php if(is_array($vo['childs']) || $vo['childs'] instanceof \think\Collection || $vo['childs'] instanceof \think\Paginator): if( count($vo['childs'])==0 ) : echo "" ;else: foreach($vo['childs'] as $key=>$voo): ?>
                    <li>
                        <a href="javascript:;"><?php echo $voo['region_name']; ?></a>
                    </li>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                </ul>
                <?php endif; ?>
            </dd>
            <?php endforeach; endif; else: echo "" ;endif; ?>
        </dl>
        <?php endif; ?>
    </li>
    <?php endforeach; endif; else: echo "" ;endif; ?>
</ul>
</body>
</html>